package cn.hist.hfp.exception;

import lombok.Data;
import lombok.NoArgsConstructor;

@Data
public class ErrorVO {

    private String code;
    private String message;

    public ErrorVO(ErrorCode errorCode) {
        this.code = errorCode.getCode();
        this.message = errorCode.getMessage();
    }
}
